package com.bm.Result;

import lombok.*;


@AllArgsConstructor
@NoArgsConstructor
@Getter
@RequiredArgsConstructor
public enum CodeEnum {
    OK(200, "成功"),

    FAIL(500, "失败"),

    TOKEN_IS_EMPTY(901, "请求Token参数为空"),

    TOKEN_IS_ERROR(902, "请求Token有误"),

    TOKEN_IS_EXPIRED(903, "请求Token已过期"),

    TOKEN_IS_NONE_MATCH(904, "请求Token不匹配"),

    USER_LOGOUT(200, "退出成功"),

    DATA_ACCESS_EXCEPTION(500,"数据库操作失败"),

    ACCESS_DENIED(500, "权限不足"),
    VALIDATE_CODE_IS_EMPTY(600,"验证码为空"),
    REDIS_VALIDATE_CODE_EMPTY(601,"获取验证码失败"),

    VALIDATE_CODE_UNLIKE(602,"验证码不一致"),
    LOGIN_PASSWORD_ERROR(603,"账户或密码错误"),

    USER_IS_NOT_LOGIN(701,"用户未登录"),

    SYSTEM_ERROR(300,"系统异常"),

    USER_PASSWORD_IS_EMPTY(301,"密码为空"),
//parameter
    SYSTEM_PARAMETER_IS_EMPTY(302,"参数为空"),

    REPETITION_DATA_ERROR(303,"重复提交"),

    COMMUNITY_IS_EMPTY(400,"没有该社区"),
    WECHAT_USER_IS_EMPTY(401,"没有该用户"),
    QUERY_ILLEFAL(130,"非法获取工单信息"),

    QUERY_ILLEFAL_TO_USER(-130,"非法获取用户信息"),

    REPAIR_QUERY_ILLEFAL(-130,"非法维修工单"),

    STATUS_ERROR(-136,"非法操作业主认证"),

    NOT_FOUND_BINDING_BUILDING(-115,"未检索到需要关联绑定的住宅信息"),


    SUCCESS(200,"系统初始化成功"),

    SYSTEMT_ALREADY_INIT(-78,"系统已经初始化"),
    QUERY_APPROVE_ILLEFAL(-130,"非法的固定资产信息")
    ;
    //repetition



    ;

    //结果码
    private int code;

    //结果信息
    @NonNull
    private String msg;
}
